## -*- coding: utf-8 -*-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<link rel="shortcut icon" href="${h.url_for('/basa_fav.ico')}"/>
    <title>${self.title()}</title>
    ${self.head()}
    ${self.script()}
</head>
<body>
	<table class="maintab">
		<tr>
			<td class="logo">${h.image(h.url_for("/basa_logo.png"), "basaasa logo")}</td>		
			<td class="maintab">${self.maintab()}</td>
		</tr>
		<tr>
			<td class="line" colspan="2"></td>
		<tr>
	</table>
	<table class="content">
		<tr>
			<td class="body">
			${self.flash()}
			<div class="header">${self.header()}</div>
			<div>${next.body()}</div>
			<div class="menu">${self.menu()}</div>
			</td>
		</tr>
	</table>
</body>
</html>
<%def name="script()"></%def>
<%def name="menu()"></%def>
<%def name="maintab()">
${h.link_to(label=_(u"Home"), url=h.url_for(controller="doc", action="list"))} | 
% if c.is_admin:
    ${h.link_to(label=_(u"Services"), url=h.url_for(controller="service", action="list"))} | 
% endif
${h.link_to(label=_(u"Bug report"), url='http://code.google.com/p/basaasa/issues/list', id=None)} |
${h.link_to(label=_(u"Logout"), url=h.url_for(controller="auth", action="signout", id=None))}
</%def>
<%def name="title()">${_(u"BasaAsa")}</%def>
<%def name="head()">${h.stylesheet_link(h.url_for('/css/main.css'))}</%def>
<%def name="header()"><div id="header">${_(u"base")}</div></%def>
<%def name="flash()">
    % if session.has_key('flash'):
    <div id="flash"><p>${session.get('flash')}</p></div>
    <%  
        del session['flash']
        session.save()
    %>
    % endif
</%def>
